const CopyWebpackPlugin = require("copy-webpack-plugin");
const path = require("path");


let plugins = [
  new CopyWebpackPlugin([
    {
      from: path.resolve("src/assets"),
      to: `${path.resolve("dist")}/assets`,
    },
  ]),
];


module.exports = {
  // pages: pagesObj, //多入口
  lintOnSave: false,
  configureWebpack: {
    plugins: plugins,
  },
  devServer: {
    port: 7788,   // 端口号
    disableHostCheck: true,
  }
};
